package com.lggry.array;

public class ArrayDemo4 {
    public static void main(String[] args) {
        //目标：认识二维数组
        printArray();
    }
    public static void printArray(){
        String[][] classroom = {
                {"张无忌","赵敏","张无忌"},
                {"张三丰","宋远桥","小龙女"},
                {"灭绝师太","陈昆","玄冥二老","金毛狮王"},
                {"逍遥","杨过"}
        };

        for (int i = 0; i < classroom.length; i++){
            for (int j = 0; j < classroom[i].length; j++){
                System.out.print(classroom[i][j] + "\t");
            }
            System.out.println("\n");
        }
    }
}
